(welcome "Welcome to the IDerPrefs installation utility.")
(complete 0)
(set @default-dest
(askdir
(prompt "Where would you like to install the program and it's icon?")
(help "The files will be copied directly into the directory you specify.")
(default "SYS:Prefs/")
)
)
(set there
(exists @default-dest
(noreq)
)
)
(if
(= there 1)
(abort @default-dest "\nis an existing file, I can't install IDerPrefs here.")
)
(if
(= there 0)
(makedir @default-dest)
)
(copyfiles
(prompt "OK to copy?")
(source "")
(choices "IDerPrefs" "IDerPrefs.info")
(dest @default-dest)
)
(complete 33)
(if
(askbool
(prompt "Do you want the default config file to be installed?")
(help "This is to enable the Reset to Defaults menu item. You should install it regardless of whether you already have a config file you're using or not.")
(default 1)
)
(
(set config-dest
(askdir
(prompt "Copy the default config where?")
(help "The file 'orig_IDer.prefs' will be copied here.")
(default "s:")
)
)
(set there
(exists config-dest
(noreq)
)
)
(if
(= there 1)
(abort config-dest "\nis an existing file, I can't install IDerPrefs here.")
)
(if
(= there 0)
(makedir config-dest)
)
(copyfiles
(prompt "OK to copy?")
(source "")
(choices "orig_IDer.prefs")
(dest config-dest)
)
(tooltype
(prompt (tackon "Now setting a tooltype:\nORIGNAME=" (tackon config-dest "orig_IDer.prefs")))
(dest (tackon @default-dest "IDerPrefs"))
(help "Without this step, the Reset To Defaults menu item will be disabled.")